home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / kickups.swf / scripts / DefineSprite_37 / frame_2 / DoAction.as
Encoding:
Text File  |  2011-06-09  |  2.4 KB  |  95 lines

  1. t += "0.1";
  2. oldx = x;
  3. oldy = y;
  4. x = getProperty("Ball", _X);
  5. y = getProperty("Ball", _Y);
  6. vy += g / "10";
  7. x += vx / "10";
  8. y += vy / "10";
  9. if(y < BallRadius)
  10. {
  11.    y = BallRadius;
  12.    vx *= elastic;
  13.    vy = - vy * elastic;
  14. }
  15. if("300" - BallRadius < y)
  16. {
  17.    if(kicked == "1")
  18.    {
  19.       tellTarget("verdictmov")
  20.       {
  21.          gotoAndPlay(2);
  22.       }
  23.       kicked = "0";
  24.       if(score < "5")
  25.       {
  26.          verdict = "that\'s so weak! hahahaha! try again ...please";
  27.       }
  28.       else if(score < "10")
  29.       {
  30.          verdict = "aren\'t you embarrassed already?";
  31.       }
  32.       else if(score < "15")
  33.       {
  34.          verdict = "if you\'re under 6 years old, that\'s a good score ...you are under 6, aren\'t you?";
  35.       }
  36.       else if(score < "20")
  37.       {
  38.          verdict = "that\'s better! but shouldn\'t you get back to work?";
  39.       }
  40.       else if(score < "25")
  41.       {
  42.          verdict = "you do have too much free time huh?";
  43.       }
  44.       else if(score < "30")
  45.       {
  46.          verdict = "you might just do it ...maybe this wasn\'t a waste of time after all";
  47.       }
  48.       else if(score < "50")
  49.       {
  50.          verdict = "well done! that only took you " add int(getTimer() / "1000") add " seconds!";
  51.       }
  52.       else if(score < "100")
  53.       {
  54.          verdict = "the kick-ups forum is here http://pub73.ezboard.com/bvectorinternet   ...and the password to post is iown3dkickups";
  55.       }
  56.       else if("99" < score)
  57.       {
  58.          verdict = "over 100?! very good. you know you\'ve been playing for " add int(getTimer() / "1000") add " seconds?!";
  59.       }
  60.       else if("1999" < score)
  61.       {
  62.          unloadMovieNum(0);
  63.       }
  64.       if(bestscore < score)
  65.       {
  66.          bestscore = score;
  67.          set("../score/:my_score",bestscore);
  68.       }
  69.    }
  70.    y = "300" - BallRadius;
  71.    vx *= elastic;
  72.    vy = - vy * elastic;
  73. }
  74. if(x < BallRadius)
  75. {
  76.    x = BallRadius;
  77.    vx = - vx * elastic;
  78.    vy *= elastic;
  79. }
  80. if("400" - BallRadius < x)
  81. {
  82.    x = "400" - BallRadius;
  83.    vx = - vx * elastic;
  84.    vy *= elastic;
  85. }
  86. setProperty("Ball", _X, x);
  87. setProperty("Ball", _Y, y);
  88. setProperty("Ball", _rotation, x);
  89. setProperty("Ball", _xscale, "100");
  90. setProperty("Ball", _yscale, "100");
  91. setProperty("shadow", _X, x);
  92. setProperty("shadow", _alpha, y / "2" - "50");
  93. setProperty("shadow", _xscale, y / "4");
  94. setProperty("shadow", _yscale, y / "12");
  95.